const mongoose = require("../db/mongodb.js");
const factoryPicSchema = mongoose.Schema({
    title: {
        type: String,
        required: [true, "不能为空"]
    },
    src: {
        type: String,
        required: [true, "不能为空"]
    },
    isLock: Number,
    hot: {
        type: Number,
    }
}, { timestamps: true });
const factoryPicModel = mongoose.model("FactoryPic", factoryPicSchema);
factoryPicModel.fields = {
    title: "标题",
    src: "文件"
}
module.exports = factoryPicModel